﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AbstraX.QueryProviders;
using AssemblyProvider.Web.Entities;
using AbstraX.ServerInterfaces;

namespace SLControlProvider.Web
{
    public class SLControlProviderHierarchy<T> : ExpressionTraceableHierarchy<T> where T : IBase
    {
        private SLControlProviderService service;

        public SLControlProviderHierarchy(SLControlProviderService service)
        {
            this.service = service;
        }

        public SLControlProviderHierarchy(SLControlProviderService service, string parentID) : base(parentID)
        {
            this.service = service;
        }

        protected override AbstraX.ServerInterfaces.IRoot Root
        {
            get 
            {
                return service.GetSLControlsRoot();
            }
        }
    }
}
